<template>
  <div class="recommend">
    <div ref="wrapper" class="wrap">
      <div class="content">
        <list></list>
        <Footer></Footer>
      </div>
    </div>
  </div>
</template>

<script>
import List from '../components/List';
import Footer from '../components/Footer';
import BScroll from '@better-scroll/core';
import PullUp from '@better-scroll/pull-up';
import MouseWheel from "@better-scroll/mouse-wheel";

// BScroll.use(Pullup);
BScroll.use(MouseWheel);
export default {
  name: "recommend",
  data:function(){
    return {
        title:"recommend"
    }
  },
  components: {
    List,
    Footer
  },
  mounted(){
    this.$nextTick(()=>{
      let bs = new BScroll(this.$refs['wrapper'],{
      pullUpLoad:true,
      scrollY:true,
      probeType: 3,
      click: true,
      mouseWheel: {
        speed: 20,
        invert: false,
        easeTime: 300
      }
      })
    })
  },
};
</script>

<style lang="scss" scoped>
.recommend{
  font-size: 0.12rem;
  display: flex;
  flex-direction: column;
  z-index: 1;
  .wrap{
    height:4.5rem;
    position:relative;
    z-index: 1;
    .content{
      width:100%;
      height:26rem;
      margin-top:-0.04rem;
      z-index: 1;
    }
  }
}
  
</style>
